class Admin::BaseController < ApplicationController
  before_filter :require_admin
  protected
    def require_admin
      unless current_user.admin?
        flash[:error] = "Access Denied"
        redirect_to root_path
      end
    end
end
